<!--[if lte IE 6]>
<style>.fixie6png{behavior:url("<?=$_SERVER['config']['style']?>/js/iepngfix.htc");}</style>
<link rel="stylesheet" href="<?=$_SERVER['config']['style']?>/css/ie6-subnav.css" type="text/css"/>
<script type="text/javascript" src="<?= $_SERVER['config']['style']?>/js/iepngfix-tilebg.js"></script>
<![endif]-->
<script type="text/javascript" src="<?= $_SERVER['config']['style']?>/js/prototype.js"></script>
<script type="text/javascript" src="<?= $_SERVER['config']['style']?>/js/lazyload.js"></script>
<script type="text/javascript" src="<?= $_SERVER['config']['style']?>/js/global.js"></script>
<script type="text/javascript" src='<?= $_SERVER['config']['style']?>/js/SWF.js'></script>
<script type="text/javascript" src="<?= $_SERVER['config']['style']?>/js/common.js"></script>
<script type="text/javascript" src="<?= $_SERVER['config']['style']?>/js/effects.js"></script>
<script type="text/javascript" src="<?= $_SERVER['config']['style']?>/js/carousel.js"></script>
<script tppe="text/javascript" src='<?= $_SERVER['config']['style']?>/res/friends/js/Attention.js'></script>
<script tppe="text/javascript" src='<?= $_SERVER['config']['style']?>/res/friends/js/Friends.js'></script>
<script tppe="text/javascript" src='<?= $_SERVER['config']['style']?>/js/comments.js'></script>
<script tppe="text/javascript" src='<?= $_SERVER['config']['style']?>/js/vcode.js'></script>
<script type="text/javascript" >
function showPopup(id){
	if($(id).hasClassName('hidden')){
		$(id).removeClassName('hidden');
	}
	else {
		$(id).addClassName('hidden');
	}
}
function showLoginDone(event){
	var _event = $E(event);
	var element = Event.element(_event);
	if('_btn_login_done' == element.id || 'login_popup' == element.id){
		_event.stop();
		var e = $('login_done');
		if(e.hasClassName('hidden')){
			e.removeClassName('hidden');
		}
		else {
			e.addClassName('hidden');
		}
	}
}
function _popup_login(){
	var __html = $('login_popup').innerHTML.replace(/class=\"hidden\"/g,'');
	new MessageBox(MessageBox.TYPE_MESSAGE,__html,'请登录');
}

function _hidden_popup(id,event){
	var e = $E(event);
	var element = Event.element(e);
	if("A" != element.tagName){
		if($(id) && (!$(id).hasClassName('hidden'))){
			var pos = $(id).cumulativeOffset();
			if(e.clientX<=pos[0] || e.clientX>=pos[0]+$(id).getWidth() || e.clientY<=pos[1]-60 || e.clientY >= (pos[1]+$(id).getHeight())){
//				if($(id).hasClassName('hidden'))
				$(id).addClassName('hidden');
				/*else if($(id).getStyle('display') == 'block'){
					$(id).setStyle({'display':'none'})
				}*/
			}
		}
	}
}
document.observe('click',function(event){
	_hidden_popup('login_popup',event);
	_hidden_popup('login_done',event);
});
</script>

